added media stream helpers