actually add the connections to the json