added detection for gps signal loss