modify flow and policy