isAuthorized is not used at all?