More Adhoc functions implemented

i need to pack the struct and i'm using the same method with the rest of the packed structs (from the original code) which seems to be in C-style