changed method of retrieving of sensitive credentials due to env not working as intended