rest: fix require