make "debug" a config option