switch to exceptions package