starting stream correctly