read creds from a file