write history file - beginning....