fixed wrong variable copy
added packet support in link and send