attempting to rescue from error handling better