async fixes, refactoring of tree parser
added precompilation to parser