fixed a number of problems for the pilot