add history file input and ouput