helpers mkdir repair