modify out() to make tests pass on CLI