debug code fork