draft for Gismu class, with debug code