suupport auth key, support auto reconnect, fix some bug