add output to file