add logger for debugging