add rescue and test rest interface