extended readbinarycf to be able to deal with several replicas in the same file