updating charging config