should be done only if directory doesn't exist