handle commit messages