adjust log info format & fix bugs & test