added resend functionality fixes #3