did some more updates for rails 4