add support for mongoid 4