added resending of package