updated file writing in sep processor