rewritten install setup script