adding connect and config