more adjustments for rails 4