further preparation for rails4