made gpx2pts more modulizable