added gpx functionality