modified astbuilder for compilation