i think u need to add poll in thread