adjust log system
fix Ehat bugs