refactoring in instal bundle