this version is rails 4, but not using threadsafe