upgraded stm.dump and added stm.saveAs(data, filename)
now opens a file - save as dialog and saves the file with the specified data and filename