changed syntax - now everything works with Ruby 1.8.x