adapting install script