Revert "detecting environment"

This reverts commit 75bb30878025ed314b3484f39cad6e263ec8dd4c.
add main bootstrap
correction detecting env