added branching to the path system, though it isn't fully automated yet