changes required to use Mongoid