simplified code; prepared code for generation of DTAG early warning config files