control script refactoring, merge init and install together