sombined cliend and server