implement diagnostic endpoint
Merge pull request #1 from iambowen/master

implement diagnostic endpoint