extended gib function for handling git branches
some other updates along the way