add config cross references for references and collections
make the writer index sorted collections