diag setup