add debug info for preference