add prototype of logging system