add auto_connect
fix autoConnect