breaking refactor for use outside of mongoscope