pp1 updated for flags