lots more mongoose logic