added access to sample stream