Changing the architecture so that different eonnections have a manager to manage them all