disable usage of endpoint if host is defined