ensure animations don't race each other