getpub in client