improve dynamic config