first version of merge gcf script