edit main config