lots of code gen improvements, working on symtab import