migrate example to WAMP2