replacing 127.0.0.1 with host var