removed hardcoded localhost, use autodiscovery