adding Rails checks