more elegant solution to cockpit rendering problem.