improve mongoid support