fix non-standard exception throwing