update libs
improve authorization