Divide server and client side