improve log system