fix correctly setup of APICredentials modules