hack stuff till it works on ruby 1.9.2