updated to generate S19 file