fix scanning and parsing for import, parser tests pass
build support for builtin functions