better pilot error handling