add the dump part in cgb_mod.lib