cleanup engine access code