start implementing logic for polling