bug fix and gps connection