for socket test