improve auth file reading