added ability to turn off autoreply and switch between network and gps