removed debug logging, added check for changes before context save