add selfrestart patch