adding publisher thread