adding epoll method to monitor IO