fix REST API breakage