repaired installation script