some functions were called without a stream