implemented some compileFragment functions. parsing seems to work OK