add authetication hooks