ENH: added output stream