support for custom connection object