GC: some generalisation, added config options for batch jobs