add mongoid 4 support