adding simpler connect logic