put structure functions in a package
field extraction