rails improvements