changes for ref-ts