change publishing server to gateway