added mongoid stuff