fixing server to add hostname from env variable