updated some functions to allow integration with pepmapsGUI