update gems, handle ssl errors