working on log system