add logger for error