copied from mapmyfitness csv output script