fix bug, add some script