save and reload commands history