adding support for mongoid backends