changing localhost to loopback