fixed from = to == for top level scripting
updated autopilot functions