fix printStream
Util cleanup