working on detection while polling