allows to export models to a csv file