mod from git2