making streamingput() synchronized