add sm global wait control