move restoreTs to Builder