made mongoid 4 compatable