add simple logger for debugging