fix authentication problems