optimize, use function to refact
mv autoconfig.sh to setup.sh