clean up path functionality