add factory for Connector creation