make ruby 1.9 compliant