update main config