outputs models to file after run