stream working for console