added encoder send diags