added a FieldByName helper for working with structs