refactor
fix create dirs