upgrade to rails 4