optimisation for local rest server