changed commit hook handling