initialize stream without locking