sleep first, avoid conflict with upgrade