moving the output to a file instead of stdout