now it works both with evented or non evented servers