setting up server side