now sleeps a variable amount of time