update section 5

regroup client functions separately from server functions