switching to makedirs