getting path intersection working