debug statements no longer displayed unless debug set as a parameter