compile packet ray