getBracketMap (now also takes x-tok)