another simple sleep implementation