added a commit hook