switching should happen at higher priority