implement inap_extract