(re)write Selfupdate.cs