added autpilot stuff