set int_delivery_status before error check