hack to support mysql and jruby