rename adapter get_state, set_state to get_current_state, set_current_state