refactored git driver