msf code that should work for powder and monomer, dirty because there are print statements
msf code that should work for solution and powder, no print statements