pass server arg to packet_handler