adding a diagnostic template