update loadGem method