should have fixed packet handling