fixed reading authfile