added the gg script in a way that would work for a .dots directory