bugfix - compile with exceptions turned on