code cleanups and addition of a communications protocol check to QTVODm2