don't depend on endpoint ending in path or not