Finished to adapt the construction of the config object to rex.