make createDir work