balance event debugging
websockets patch