small directory creation related modification