add history script

add history script