add simple log system