prepare for rail 4