server side set up