scoped symbol tables mostly working