cleans up directories, rm unnecessary files