reworked stackhandler to make symtable managing easier