adds get_settings and add_settings function