switched to mongoid