sleep 1 to fix a race condition