add functionality to export history items as files