improvements to path planning