upgrading gems, fixing gems