upgrade for REST based