renamed setup to setupEventFlow