main.php/debug recheche and structure v0.2