more clear code, and some logger record files are provided