enable passing of named structs in functions