refactor install script
added exception