small fixes to code syntax and elaboration on jq versions