sleep to simulate work before replying (matches C example)