fix simpleclient bugs for autobahn testsuite