add simple logging system