get the server endpoint from settings, instead of hardcoding it.
removed some dead code after strip template refactor.