add extra debugging to sharp to help diagnose frequent issues