fix some authentication issues