better path creation