added support for dvr functionality