resolves issue #198 by adding Ruby 2 compat mode.