fix #1 : see mongoose branch