fixed answer_output_packet logic