clean and update path