add some log info in the code