write gps data to file with a little redress