Move host config
move connOptions to connect()
Create client earlier