combined logic and design for gps-status