full implementation of connector, not tested yet