adding connect methods to enable better bean definitions.