some work on WAMP error handling