moved parsetree caching outside of this project