reverse binding of route blocks, handle websocket errors