added json example hooks
fix git support