setup script for server side