some changes for new version of puthauth