moving plotting and data remapping outside mongo submodule