change auth structure