SCRIPTS: make HELM function names unique and arrays local