correction in rest server to allow local server optimisation