added some features to support video streaming