cleaning up directory pathing