use directory resource versus raw mkdir