added api for hooks, merges, and stats