changed: from sending strings to sending struct packets