updating config code