add sleep and resend