upgrade ruby map