workaround for Ruby 2.2.0 or later