replace finalize return values if provided by qstate