added a get_setting method.