add gflags for client & server