modified script for geogig