changes for mongoid