update workflows
make state selection global
workaround: update state with the old API