read in several nodes with their own port numbers