implement diagnostic endpoint