use sync version or mkdir