add back sleep logic