implemented new log system