texcommands fixes
scope parser roughly done