added debug on/off, notifications on/off