exported to gps.js