add debuggingfor server events