update config struct and resource struct