corrections to parsegpx and stop detection