More verbose event triggering and correct file flag check for setup event