fixed some additional breakage that occurs when running under jruby. We need to really just move to blowing away all this code and starting fresh. I smell an experimental branch in the making