some ruby tweaks