major bugfixes, waypoint fix, section fix, painting order