added remote stream support