removed mongoid dependency