makes all exception work