expose a couple API endpoints.