replace should be done inside the load function.