fixed some issues. still have to fix the oversize resend array prob.