Added undocumented option 'agent'
Fix default connection