modified tvheadend scripts