update config based on reference configs - almost complete