modified mongoid config.