add initial sharing server-side code