move TDsl import to where it's needed