fixes to require parsing, and some crashing fixes to require compiling