revised rails lite a bit