reading the state from pluginState instead of from the instrument