Revert "clean up main.php"

This reverts commit acc69986ca0929d16a4f0f848ffce3b9cf4bcd1e.