replaced hardcoded hostname with variable