write watchfile for simage