extend rest_controller to mx_controller