adding some logic to install script