changed all "notice" statements to "debug"