trying to build my own poller