fix install process. add minimal option to avoid extra scripts/tools.