fixed install script to use global argument