adding debug as requested in note on pull request ab7b602