functions to phedex client