a little gateway to mongoose state