debug should only be for local setting