modified mongoose dependency