add mongoid support