en-safe-ify the bash scripts
separate GPS commands into their own functions