added concat function to server and client