- adding connect logic
- added reset feature