add output dir and subfolders