you are reading the topology id and then throwing it away. It needs to be stored in the HeaderParams