wont work properly without endpoints