improved gem installation