renamed mkDirSync to mkdirSync