upgraded for rails4 support