change config generation logic for simple array mapping