client and server part 2 done