csv can be created by model outside controller