added option to make directory