first version, read/write topo file.