added select poller
added tests for stop