set up class for gaugefield handling