fluent API for connect()

Change-Id: Ic44e6519f71d93914e9de00c2a79f4d788222a52