install script and small fix to run script