now properly support use cmd history
fixed #3