added cli arguments to both server and client