Fixes #1: sync updates to state file changes