partial clean-up of path