change add to work with git v2