an attempt to fix rails