move helper methods outside to static methods
add binding info
use LookupVisitor to speed up token lookup