make sure endpoint-lookups only return distinct values
fix endpoint-editing to work with new endpoint api object