now it restores previous state with offline