another hack to support mysql and jruby