gapit_functions now as a local copy - 3.35