added gpsMode option