made supportable to mongoid 3