rmoved json and finished packet structure. Started threading