compat with new stream interface