creds and logging