add option to create sub directory