first cut of the endpoint parser