check_gps implementation