using environment variables to get host name and instance