AST to lang now working