adds support for specifying a connection