mongoid config fixes