upgrade ruby version
some minor changes