remove hard-coded localhost