add method for transmitting packages