running code of client and server