add logging support
better server events logging for debug purposes