add all the stuff and clean up the directory