add feature for hook process #9,#8