added save console output to file