prints IDs and connections