refactor, handle handshake error
use autobahn