add debug, dbnotify option in settings