added self-publish support to Link & TcpLink