consider env variables for hostname & port