added missing write of manifest