add model for opening output file after execution
fix bug