creation now working for directories