gps.php fixes