script polling reduce