fix macro vars bug, rewrite jq to $