adapt tspmeta example