really fix pathbuilding