start of support of pf structs