minor tweaks for ruby