seperated the client and server