structs, temps, partial service for allocateInv