adds a function to create PailSpecs from PailStructure