extract engine code