fixed get_state
added missing get_qs_value