some code to prep for path planning