code changes to get the connections based on status...