reverted to mongoid