rewriten API for special events

That was for GWT-RPC