general tweaks and ruby/java language specifics