fixing auth issues