implement srt writer