remove pre-engine code