much faster, thanks to headius on freenode irc
need jruby