upgrades to rails4