clean up consoleserver get_connections function, remove some debugging