server/client structure for demo