added append to output tee in docstring