add setup server side code