code template in packets