add auto resend, but it have BUGS!