fixes auth issues