move all setup stuff into setup script