modifyed by jayli:for more log info