misc tweaks for ruby modes