updated to clean the working directory