adding more functionality for connections