simplify main file

simplify main file
Revert "simplify main file"

This reverts commit 30bc80243880a3e6165035e7bd4a02d1a4779989.