added local setting sample