fix authentication issues