service hooks, and the API