rename rest obj to restCmd