add support for domain in credentials file