added Socket writing based on changed values from encoded packets