enable debugging where appropriate