replaced autoFlush with setNoBuffering