save output during programm execution