added support for creds from txt file