first draft of respond_to_packet but doesnt work. needs debugging