added RESEND support
added RESEND support
repackaged stuff