common site setup script