trying to get API to read creds from cred/ despite being called in a test