rework install script