warnings to exceptions