refactor import TSPC