updates to preparse code