network manager auth function almost done