move side effecting mkdirs to cli