RELS replace has to happen later