move dist path into path object