finalized setup script