fix import issues with TranscriptWriter