basic infrastructure for polling