restored rest controller