prepare extraction