upgrade to rails4