use metadata service to fetch credentials and related fix