rest: reorder require calls