make monotone use hooks, add getsetup