change output format, fix some error output format