 #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
 						}
 					}

				guard nev >= 0 else {
					Log.terminal("event returned less than zero \(nev).")
				}

				// process results
				self.lock.doWithLock {



	// socket can only be queued with one callback at a time
	static func add(socket: SocketType, what: Filter, timeoutSeconds: Double, callback: EventCallback) {
		let threadingCallback:EventCallback = {
			s, f in
			Threading.dispatchBlock {
