make engine rails 4.1 compatible - lot of work still needs to be done