making the directory creation more modular - per file basis