append to history file