spitting output to console instead of a file