improve history cmd manager