added diagnostics sample