store data, clean up logging