made the file creation into a categorized dir name.