fix to make samples/ad-insertion work when hosted elsewhere