add restart system and modified share flag system