cleans up the directory structure