fixed simple logger