refactoring bootstrap sequence