updated to mongoose 3.6