fix hook regression and env api
6.3.1