possibe working version of MASH in main method