how to have some sembalance of command history