added check for git