made updates for latest versions
fixed rails version back to 4