changed server to use protocol