add _ensure_directories
Quick commit
Quick commit