refactored package/symbol lookup part

added 'use as' and 'use local'