adding logger for errors.