fixed order of emit(packet) / send(packet)