upgrade to rail 4.0.0