adding support for hourl and jvid, changing the apis