added mongoose plugin