decouple connect and connections modules