init sample url block logic