logic and  whitespace fixes in gps passthrough