cleanup of path