added get_settings and update_settings methods