added gps thread