fixed gpsd code