added new endpoint and small fixes