finished basic support for saving results