added upgrade for global keys