throw an exception or log a warning?