various bot fixes, jruby support