allow it to work in Ruby 1.9.3 and 2.0.0. is there a better way to make it work across versions?