adapt to Ruby 2.0 or older
dev2