refresh local state