#41 debug prints handled separately from toplevel exceptions
#41 added a note for posterity