set oxide_type to ERROR for when code fails