update REST to resolve repository root properly