scripts/functions: update