added emcy diag call