first take on endpoint handler