connectiing publications to the server