added some debug code for RG reobf