hook added to ptclient