updated the authenticate scripts