saving state, still needs work on the chrome sync conversion.