modified to support ts_start