saving the commands history