basic support for saving results - work in progress