fixed simple logging