changed sync to epoll implementation