publish server integrated to server as thread