update for new mongoose schema tree behaviour