base of setup script