switch actions depending on their runOn flags