events and server