set creds directly after getting them from metadata