ruby1.9 syntax fixes