now works with Ruby 2.0