did tableswitch and fixed a huuuge bug in goto