Improved path splitting