moke the rest status more robust