add a function: getcurrentsetting