delay(): various fixes; add delay in fetch to simulate a round-trip delay; document