finish the alpha version with debug code