history written backward
history is appended in file, but displayed in reverse order