add rescue on non-Rails-4 file