install script with cleaning