make it work with 1.8 ruby