fixing isAST scope
0.1.1