(bluefox) change example adapter for emitEvent
(bluefox) support of certificates
(bluefox) fix names for states