hotfix parsing so that the waypoints are properly connected