improved simple logging