update json
inst id as well
sed head