now including REF in header. some reason dict update not working.