update gems
retry connections if server refuses