simplify createDir