 #endif
 						if let qitm = self.queuedSockets.removeValue(forKey: sock) {
 #if os(Linux)
-							var evt = event()
-							evt.events = qitm.what.epollEvent
-							epoll_ctl(self.kq, EPOLL_CTL_DEL, sock, &evt)
+							epoll_ctl(self.kq, EPOLL_CTL_DEL, sock, nil)
 #endif
 							qitm.callback(sock, filter)
 						} else {
 #if os(Linux)
 							print("event socket not found \(sock) \(evt.events)")
+#else
+							print("event socket not found \(sock) \(evt.filter)")
 #endif
 						}
 					}

						} else if (evt.events & EPOLLOUT.rawValue) != 0 {
							filter = .Write
						}
#else
						let sock = SocketType(evt.ident)
						var filter = Filter.None

	static func remove(socket: SocketType) {
		if let n = NetEvent.staticEvent {
			n.lock.doWithLock {
				if let _ = n.queuedSockets[socket] {
#if os(Linux)
					epoll_ctl(n.kq, EPOLL_CTL_DEL, socket, nil)
#else
					var kvt = event(ident: UInt(socket), filter: Int16(EV_DELETE), flags: UInt16(EV_DELETE), fflags: 0, data: 0, udata: nil)
					var tmout = timespec(tv_sec: 0, tv_nsec: 0)
