improved sema diag