gps setup with new functions