updated to fix rails matching