changed oath to REST lib