added log server
fix events attach/dettach