add pre commit hook