allow for use with rails 4