add EventHandler for server